package com.dong.ioc.javabased.diTest;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * description
 *
 * @author Administrator 2021/09/06 10:58
 */
@Configuration
public class AppConfig {

    @Bean(initMethod = "init")
    public MyService myService(){
        return new MyServiceImpl();
    }

    @Bean
    public MyService myService1(){
        return new MyServiceImpl1();
    }

    @Bean
    public MyController myController(){
        return new MyController();
    }
}
